package edu.geo.core;

import edu.geo.containers.Json;
import edu.geo.db.conn.DBConnectionProvider;
import edu.geo.filters.GeoProcess;
import edu.geo.filters.GeoProcessFactory;

public class GeoHandler {
	GeoProcessFactory gfactory ;
	
public GeoHandler( DBConnectionProvider dbConnectionProvider)
{
	gfactory = new GeoProcessFactory(dbConnectionProvider);
}
	
	
//private Log _LOG = LogFactory.getLog(GeoHandler.class);
private GeoProcess gProcess; 

	public Json geoHandler(Json request)
	{   Json result = null;
		gfactory.setRequest(request); 
		gProcess=gfactory.getGeoProcess();
		result =gProcess.dispatchResult(request);
		return result;
	}
	
}
